#ifndef __EC800_H
#define __EC800_H

#include <stdint.h>

enum
{
	cimi,
  csq,
  cgatt,
};
uint8_t  ec800_set_mqtt_keep_alive(uint8_t client_id, uint16_t time); 
uint8_t  ec800_get_iccid(uint8_t *buf);  
uint8_t  ec800_get_sq(void); 
uint8_t  ec800_get_gatt(void); 
uint8_t  ec800_open_server(uint8_t client_id, const char *server_ip, uint16_t server_port); 
uint8_t  ec800_connect_server(uint8_t client_id, const char *client, const char *user, const char *password);
uint8_t  ec800_mqtt_pub(uint8_t client_id, const char *topic, const char *message);  
uint8_t  ec800_mqtt_sub(uint8_t client_id, const char *topic); 
uint8_t*  ec800_get_rx_data(void);
uint8_t  ec800_get_imei(uint8_t *buf);  
uint8_t  ec800_close_server(uint8_t client_id); 
uint8_t  ec800_get_connect_state(uint8_t client_id);
uint8_t  ec800_apn_set(const char *operators); 
uint8_t  ec800_low_power_mode(void);
#endif
